﻿<div id="signManage" class="sign">
    <h2 class="tab-cont-h2">
        <a href="javascript:;">企业中心</a> > <a href="javascript:;">签约中心</a> > <span>签约管理</span>
    </h2>
    <div class="search-form none">
        <div class="clearfix">
            <div class="col col1">
                <label>企业名称：</label>
                <div class="inputbg">
                    <input type="text" class="input">
                </div>
            </div>
            <!--<div class="col col2">
                <label>企业所在地：</label>
                <div class="selectbg">
                    <select class="select" data-name="Mprovince">
                    </select>
                    <select class="select" data-name="Mcity">
                    </select>
                    <select class="select" data-name="Mtown">
                    </select>
                </div>
            </div>-->
        </div>
        <div class="clearfix">
            <a href="javascript:;" id="signManagequery" class='search-btn'>查询</a>
        </div>
    </div>
    <input type="hidden" id="smpage" value="1" />
    <div id="signManageCon">
    </div>
    <nav class="page-nav">
        <ul class="pagination" id="signManagePage">
        </ul>
    </nav>
</div>


<!--关闭弹框-->
<div class="modal fade model delmodel" id="closemangModel" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="">解约</h4>
            </div>
            <div class="modal-body additem">
            <form id="closeManageForm">
                <div class="form">
                    <div class="group">
                        <label class="l-label"><span class="need">*</span>解约原因：</label>
                        <div class="l-area">
                           <input type="text" class="form-control input1" id="closeReson" placeholder="解约原因" name="closeReson">
                        </div>
                    </div>

                    <div class="group">
                        <label class="l-label">详情说明：</label>
                        <div class="l-area">
                            <textarea placeholder="" class="textarea textarea3" id="closemangText"></textarea>
                        </div>
                    </div>                                   
                </div>
                <div class="btn-area">
                    <input type="submit" id="closemangSure" class="btn sure" value="确定"/>
                    <a href="javascript:;" data-dismiss="modal" class="btn cancel">取消</a>
                </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="jquery.validate.min.js"></script>
<script type="text/javascript" src="jqPaginator.js" charset="UTF-8"></script>
<script type="text/javascript" src="signManage.js"></script>
<script type="text/template" id="signManageTpl">
    <table class="table table-hover table-responsive">
        <tr class="thead">
            <td>企业编号</td>
            <td>企业名称</td>
            <td>企业所在地</td>
            <td>物流联系电话</td>
            <td>签约时间</td>
            <td>出车次数</td>
            <td>签约次数</td>
             <td>违约次数</td>
             <td>保证金额（元）</td>
            <td>操作</td>
        </tr>
        <tr class="trh7">
            <td colspan="8"></td>
        </tr>
        <%if(obj.DataObj.length>0){%>
        <%_.each(obj.DataObj,function(item,i){%>
            <tr class="tbody tbody<%=(i%2 == 0 ? 1:2)%>">
                <td class="td1"><a href=""><%=item.wuliu_no%></a></td>
                <td class="tdtextal"><%=item.wuliu_name%></td>
                <td><%=item.city_name%></td>
                <td><%=item.phone%></td>
                <td><%=item.contract_time%></td>
                <td><%=item.out_num%></td>
                <td><%=item.sign_num%></td>
                 <td><%=item.breach_num%></td>
                   <td><%=item.bail_num%></td>
               <td><a href="#" data-toggle="modal" data-target="#closemangModel" data-company_id="<%=item.company_id%>"  data-cancel_id="<%=item.baseid%>"  data-wuliu_id="<%=item.wuliu_id%>">解约</a></td>
            </tr>
            <%})%>
        <%}else{%>
               <tr><td colspan="8" style="text-align:center;">暂无数据</td></tr>
            <%}%>
    </table>
    
</script>
